import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import "./index.scss";
import { RouterProvider } from "react-router-dom";
import router from "./routes";
import store from "./store/index";
import { Provider } from "react-redux";
import { message } from "antd";

// message的次数
message.config({
	maxCount: 1,
	duration: 0.5, // 秒
	prefixCls: "custom-message",
});
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
	<React.StrictMode>
		<Provider store={store}>
			<RouterProvider router={router}>
				<App />
			</RouterProvider>
		</Provider>
	</React.StrictMode>
);
